<!-- props校验 -->
<template>
    <ComponentB :title ="title" :age="age" :names="names"/>
</template>

<script>
import ComponentB  from './ComponentB.vue';
export default{
    data(){
        return {
            title:"标题",
            age:18,
            // names:{
            //     name:"张三",
            //     age:18
            // }
        }
    },
    components:{
        ComponentB
    }
}
</script>